package com.lei2j.factory;

public class ChicagoCheesePizza implements Pizza {
	
	private PizzaIngredientFactory pizzaIngredientFactory;
	
	public ChicagoCheesePizza(PizzaIngredientFactory pizzaIngredientFactory) {
		this.pizzaIngredientFactory = pizzaIngredientFactory;
	}
	
	@Override
	public void prepare() {
		pizzaIngredientFactory.createCheese();
		pizzaIngredientFactory.createClam();
		pizzaIngredientFactory.createDough();
		pizzaIngredientFactory.createPepperoni();
		pizzaIngredientFactory.createVeggies();
		System.out.println("prepare chicago cheese");
	}

	@Override
	public void bake() {
		System.out.println("bake chicago cheese");
	}

	@Override
	public void cut() {
		System.out.println("cut chicago cheese");
	}

	@Override
	public void box() {
		System.out.println("box chicago cheese");
	}

}
